package com.lzk.filter;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.kit.Ret;
import com.lzk.controller.front.UserController;
import com.lzk.model.ZcUser;

public class BackAdminFilter implements Interceptor {
    @Override
    public void intercept(Invocation inv) {
        inv.invoke();
        /*String thisMethod = inv.getMethodName();//方法名
        if ("login".equals(thisMethod) || "verfiyCode".equals(thisMethod)){
            inv.invoke();
            return;
        }else {
            String token = inv.getController().getCookie("a_t");
            ZcUser user = UserController.map.get(token);
            if (user==null){
                inv.getController().renderJson(Ret.fail("未登录"));
                return;
            }else {
                inv.invoke();
            }
        }*/

    }
}
